package jdmx.framework.common;

import java.util.Hashtable;
import java.util.Set;

public abstract class Envelope {
	private Hashtable<String, Object> items;

	public String handlingCode;
	public String methodName;
	public String envelopeVersion;
	public String envelopeType;
	
	public Envelope() {
		items = new Hashtable<String, Object>();
	}
	
	public void setItem(String key, Object item) {
		items.put(key, item);
	}
	
	public Object getItem(String key) {
		return items.get(key);
	}
	
	public Set<String> getItemKeySet() {
		return items.keySet();
	}
	
	public void clearItems() {
		items.clear();
	}

}

